//createStore用于创建redux状态管理器，applyMiddleware用于redux异步编程中间件
import {createStore,applyMiddleware} from 'redux'
//Redeucers是多个Reducer的集合，用于管理各个状态
import Reducers from './reducers/index'
//thunk用于异步编程
import thunk from 'redux-thunk'
//composeWithDevtools同于redux调试工具
import { composeWithDevTools } from 'redux-devtools-extension'
//createStore是redux最原始的创建store的方法
export default createStore(Reducers,composeWithDevTools(applyMiddleware(thunk)))